﻿using Grpc.Core;
using gRPC_Server;
namespace gRPC_Server.Services
{
    public class ProductServiceTest : ProductService.ProductServiceBase
    {
        public override async Task<ProcutResponse> GetProduct(ProductRequest request, ServerCallContext context)
        {
            Console.WriteLine($"打印请求值{request.Id}");

            ProcutResponse procutResponse = new ProcutResponse() { Id = Convert.ToInt32(request.Id), Name = "张三", ProductUrl = "http://127.0.0.1:5000" };
            return procutResponse;
        }
    }
}
